package com.hualan.zhsq.mapper.information;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hualan.zhsq.entity.information.HouseInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HouseMapper extends BaseMapper<HouseInfo> {


    /**
     * 根据id查询
     * @param houseId
     * @param residentId
     * @return
     */


    HouseInfo selectById(@Param("houseId") Integer houseId, @Param("residentId") Integer residentId);

    /**
     * 分页查询
     * @param houseInfo
     * @return
     */
    Page<HouseInfo> select(Page<HouseInfo> page, @Param("houseInfo") HouseInfo houseInfo);

}
